img {
    width: 100px;
    height: 100px;
}

.dog {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    animation: dog 5s infinite;
}

@keyframes dog {
    0% {
        left: 0;
        top: 0;
        transform: rotate(0deg);
    }

    25% {
        left: calc(100% - 100px);
        top: 0;
        transform: rotate(-90deg);
    }

    50% {
        left: calc(100% - 100px);
        top: calc(100% - 100px);
        transform: rotate(-180deg);
    }

    75% {
        left: 0;
        top: calc(100% - 100px);
        transform: rotate(-270deg);
    }

    100% {
        left: 0;
        top: 0;
        transform: rotate(-360deg);
    }
}

.hammer-animation {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: hidden;
}

.hammer-container {
    position: absolute;
    top: 0;
    left: 0;
}

.hammer {
    animation: hammer-animation 0.5s infinite;
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes hammer-animation {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-20deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-toggle input[type="checkbox"] {
    display: none;
}

.theme-toggle label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-toggle label:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-toggle input:checked+label {
    background-color: #555;
}

.theme-toggle input:checked+label:before {
    transform: translateX(30px);
}

.theme-toggle label:active:before {
    transform: scale(0.8);
}

/* 白天主题样式 */
body {
    background-color: #fff;
    color: #000;
}

/* 黑夜主题样式 */
body.dark-mode {
    background-color: #000;
    color: #fff;
}